package com.raos.example.func;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * 计算器线程类
 *
 * @author raos
 * @date 2025-03-27
 */
@Slf4j
@Data
public class Calculator implements Runnable {

    private int a;

    private int b;

    private int sum(int a, int b) {
        int sum = a + b;
        log.info("sum=[{}]", sum);
        return sum;
    }

    @Override
    public void run() {
        sum(a, b);
    }

}
